package Day2Zuoye;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("输入名称:");
        String i=in.nextLine();
        for (int j=0;j<i.length()-4;j++){
            i="^[\u4e00-\u9fa5]{0,}$";
        }
        if (i.endsWith(".rar")||i.endsWith(".zip")){
            System.out.println("正确");
        }else{
            System.out.println("不正确");
        };
    }
}
